public class DeleteMapOperation extends MapMemory
{
    private static final long serialVersionUID = 1124603526178862778L;
    private int mapPos;

    public DeleteMapOperation(Map object, MapPanel enclosingPanel, int mapPos)
    {
	super(object, enclosingPanel);
	this.mapPos = mapPos;
    }

    @Override
    public void undo()
    {
	this.enclosingPanel.insertMap((Map) this.value, this.mapPos);

    }

    @Override
    public void redo()
    {

	this.enclosingPanel.deleteMap((Map) this.value);
    }
}
